<?php

$loader = new \Phalcon\Loader();

/**
 * We're a registering a set of directories taken from the configuration file
 */
$loader->registerNamespaces(array(
    // 'Jiankong\Frontend\Controllers' => __DIR__ . '/controllers/',
    // 'Publish\Models' => $config->path->models,
    'Phalcon' => $config->path->library,
));
$loader->registerDirs(
    array(
        $config->path->controllers,
        $config->path->models,
        $config->path->plugins,
    )
)->setExtensions(array('php', 'class.php'))->register();

// $loader->registerNamespaces([
//     'Phalcon' => $config->path->library,
// ]);

// $loader->register();
